<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_event_articles
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo JURI::base(); ?>modules/mod_event_articles/js/jquery.bxSlider.min.js"></script>

<script type="text/javascript">
<!--
$(function(){
	$('#event-article-slider').bxSlider({
		displaySlideQty: 3,
		moveSlideQty: 1,
		auto: true,
		mode: 'vertical',
		controls: false,
		autoHover: true
	});
});
//-->
</script>

<div class="event-article-module<?php echo $moduleclass_sfx ?>" style="width: 200px;">
	<ul id="event-article-slider">
		<?php foreach ($list as $item) : ?>
		<li style="height: 80px; overflow: hidden; ">
			<a href="<?php echo $item->link; ?>"><?php echo $item->title;?></a>: 
			<?php echo JHtml::_('string.truncate', strip_tags($item->introtext), 40);?>
		</li>
		<?php endforeach; ?>
	</ul>
</div>
